Add the water, coconut milk, garlic, thyme, onion, salt, ginger, and beans in a pot. Bring to a simmer. Add the rice and bring to a boil. Bring the heat back down to a simmer and cook until most of the water has been absorbed.
Remove the thyme stems and large pieces of garlic before serving.