The ruby lattice, an Archimedean tiling of triangles, squares, and hexagons, is predicted to host exotic phases such as quantum spin liquids, valence-bond crystals, and magnetization plateaus. Its topologically ordered phases have also made it prominent in the context of quantum computing. While some of us recently identified two chromium and iron fluorides as classical antiferromagnets on the ruby lattice, a quantum analogue has so far been missing. Here, we synthesize CsBaTi3F12, in which Ti3+ ions with S=1/2 form a nearly perfect ruby lattice. Thermodynamic and high-field magnetization measurements show no signature of magnetic order down to 2 K. Using density functional theory based energy mapping, we find all nearest-neighbour couplings of the Heisenberg Hamiltonian to be antiferromagnetic. However, the distortions of the ruby lattice result in a Hamiltonian characterized by unusual spin chains of alternating squares and triangles. Using a combination of tensor network techniques we show that CsBaTi3F12 has a gapped ground state and features a sequence of quantum plateaus at 1/3 and 2/3 of the saturation magnetization.