This is an actual question asked in the classroom. Evil Beard’s first response is a common answer to it. The Hamlet quoting is just a bit of fun. Maybe what faculty wish they would say.
RICK: Professor, how do you know all this stuff?
BEARD: ...I made it up.
RICK: Does that include all of Hamlet, too?
BEARD: O student, speak no more!