“Tama won’t take her medicine!”
“Don’t worry. I have an ace up my sleeve.”
“Cheese? What will you do with that?”
“Hide the pill inside. She loves cheese!”

An ace up your sleeve is a last-resort solution that is sure to work. It comes from cheating at card games. An ace is a strong card, so when you are losing the game, you sneak the ace out of your sleeve and use it.

「タマが薬を飲んでくれない!」
「心配ないよ。とっておきの切り札があるから。」
「チーズ?それをどうするつもり?」
「中に錠剤を隠すの。タマはチーズが大好きでしょ!」

「袖の中のエース」は絶対成功する最後の手段です。由来はトランプでズルをすることからきています。エースは強いカードなので、負けそうになったら、隠しているエースをこっそり出すのです。