If you already have cooked white rice without the additions of onion and garlic, you can use that as a starting point. I would saute 1/2 cup onions and and 2 cloves of minced garlic until softened and translucent. Then add those with the tomatoes to the rice.