Place it at the twist in a cursed edit, after a normal scene has set up the joke, then follow it with the Classic Error Sound for the payoff and the Dun Dun Dun Sound for the reveal that follows.