Cook onion, garlic, thyme in oil, 1 minute. Add rice and beans, cook 2 minutes.
Add remaining ingredients, bring to a boil, reduce heat, and simmer until rice is cooked, 20 minutes.