On your Mac: ⌘⇧P → Connect from your phone → Pair a device, then point your camera at the QR code.
Or type the six digits it shows: