Here's the full quote:
"A ray of sunshine, it is said, can sometimes penetrate the gloomiest of dungeons, and the same, I fancy, applies to Scotsmen."
It's uttered by Bertie Wooster, the narrator, reflecting on the arrival of his friend Angus "Gussie" Fink-Nottle, a somewhat dim but good-natured Scotsman.