I teach at a university, too, and I always advise students (and kids of our friends) to take courses from faculty who get high teaching ratings. Some people say getting high teaching ratings is a sign that the teacher caters too much to the students and isn't "research oriented" enough or hard enough on grading. Frankly, when I look up teaching evaluations I can see that high teaching scores are not related to how many publications a professor has or how hard they grade (some of the highest rated teachers are some of the toughest graders). They get high scores because they love what they do, truly care about the students' learning, and know how to make the topic relevant and engaging to students. An interesting and engaged professor is a pleasure and can truly change one's life and how one sees the world (I had plenty of those, and I've never forgotten them -- I also had some duds). So, when selecting courses (other than requirements and then, if possible, take the requirement when the best teachers are teaching it), go for electives with the highest rated teachers (and sign up early because the classes get full). Then, it will be easy to write papers for those classes!