Melt the butter over medium heat. Add the onion and garlic and cook until translucent, about 3 minutes. Add the flour, chili powder, cumin, and smoked paprika. Stir to coat the onions and garlic, and cook for about 1 minute.
Add the canned beans, corn, tomato sauce, diced tomatoes, and vegetable broth. Stir to combine. Add the macaroni noodles and bring the sauce to a boil. Cover and reduce heat to low. Cook for 13 to 15 minutes until the noodles are done.
Remove from heat and add in the cheese and stir until melted. Salt and pepper to taste.