Put it at the very end of a failed attempt, after the shocked sound that sells the surprise, then follow it with a goofy yell to turn the loss into a joke and finish the edit.