Cook pasta according to package directions, drain. Melt butter in a large saucepan over medium heat. Add in garlic, cook until fragrant. Add in flour, and cook for a minute to brown.
Pour in milk, salt, pepper, and both cheese. Continue to cook over medium heat, while whisking constantly until the cheese has melted and the sauce has thickened. Mix sauce with pasta.