Casca a fagiolo
It works really fine! It comes at the right time. With exceptional timing and incredibly appropriate to the situation.
The origin of the expression is uncertain, but it is an ancient saying. Certainly the beans are good, cheap, and easy to find and a plate of beans is always good! Easy!