Place it at the sharp turn in an edit, right after the calm setup and before the punchline lands. Follow it with the Sad Trombone for a deliberately failed moment, or let the Sitcom Laugh Track carry the joke after the switch.