Place it as the punchline after the mistake is shown, then let an Anime Ahh reaction follow for extra embarrassment, or cut to Awkward Moment when the joke needs to linger. It works best near the end of a short edit, just before the final reaction shot.