Place it just before the reveal in a short edit, after a puzzled pause and before the solution appears on screen. Follow it with Anime Wow for the surprised reaction, then a Bell Ding to underline the clever finish and keep the joke moving forward.