。
While you were out, a Mr. Smith came.
Literal
Absence-during Smith [quotative-という] person [subject-が] came.
スミスさんという方 uses the polite 方 (かた) for 'person' and という for naming — 'a person called Mr. Smith.' The phrasing is courteous without going full keigo, suiting a household member relaying a message.