Put olive oil in a heated pan. When it shimmers, add garlic and cook until lightly toasted. Add rice and salt, stir until lightly toasted, then cover with 3 cups of water.
Bring to a boil and then let rice simmer, covered, for 20 minutes.