Place it at the peak of a scene, just before a cut to the payoff, so the next beat carries the joke forward. Follow it with a cheer for a mock victory, or answer it with sexy sax for a second grand entrance in the same edit.