This is one of the big advantages of pair programming and code reviews.
Um. The idea of rubber duck debugging is that you talk it through yourself before wasting another developer's time, as most of the time you can work it out on your own just by explaining the problem to an inanimate object.
Its not the only reason people do pair programming, he's just saying that when he's pair programming that is automatically solved.