Put it in the microwave.
This will heat up the rice and make it eatable. Sooner or later an ant or a similar insect will journey into the depths of your mac and eat it, the rice will then be gone.
I tried this with my laptop and left it in my garden (after microwaving). In about 10 minutes an ant had taken the rice and my laptop was fine.