If I want to see how foo.bar looked like in some certain commit then I can invoke:
foo.bar
git show :foo.bar
If you are viewing the commit in magit you can just press Enter on the file or part of the file you are interested in.