Drain beans and place in a large pot over high heat.
Add garlic and onion to pot. Boil until tender.
Add pepper, thyme, salt and coconut milk. Return to a boil.
Wash rice and add to pot with beans.
Cook over medium-low heat, covered, until rice is tender. Add water if rice is not tender once all liquid is absorbed.