A
sarcastic way of indicating that a funny situation resulted from a setup. The phrase originates from the
TV Guide-style synopsis of a
sit-com episode - hence the sarcasm (i.e. the event wasn't really that funny, or it was funny in a predictable,
stereotyped way).