Place it at the peak of a scare or fail, right after the setup and before the reaction shot, then follow it with a shocked reaction for the aftermath and a goofy yell once the joke turns playful again.