Place it immediately after the failed moment in an edit, so it acts as the reaction to what just happened. Build up with Sudden Suspense before the reveal, then follow it with Nelson's Ha-Ha! for a second hit, and close with Sad Violin when the joke needs a mock-sympathetic ending.