In a 5- to 6-quart pan over medium-high heat, combine tomatoes, onion, chilies, and garlic. Stir often until onion is slightly browned, about 10 minutes.
Add beans. Cover and simmer, stirring occasionally, until hot, about 10 minutes. Season to taste with salt and pepper.