Place it right after the punchline or failed attempt in an edit, so it acts as the reaction to what just happened. Put a SpongeBob Fail Sound before it to set up the mistake, then follow it with an Anime Wow Sound if you want the surprise to keep building.