The first measurement of the production rate of Ξb− baryons in pp collisions relative to that of Λb0 baryons is reported, using data samples collected by the LHCb experiment, and corresponding to integrated luminosities of 1, 2 and 1.6 fb−1 at s=7,8 and 13 TeV, respectively. In the kinematic region 2<η<6 and pT<20 GeV/c, we measure \begin{align*} \frac{f_{\Xi_b^-}}{f_{\Lambda_b^0}}\frac{\mathcal{B}(\Xi_b^-\to J/\psi\Xi^-)}{\mathcal{B}(\Lambda_b^0\to J/\psi\Lambda)} &= (10.8\pm0.9\pm0.8)\times10^{-2}~~[\sqrt{s}=7,8~{\rm TeV}],\\ \frac{f_{\Xi_b^-}}{f_{\Lambda_b^0}}\frac{\mathcal{B}(\Xi_b^-\to J/\psi\Xi^-)}{\mathcal{B}(\Lambda_b^0\to J/\psi\Lambda)} &= (13.1\pm1.1\pm1.0)\times10^{-2}~~[\sqrt{s}=13~{\rm TeV}], \end{align*} where fΞb− and fΛb0 are the fragmentation fractions of b quarks into Ξb− and Λb0 baryons, respectively, B represents branching fractions, and the uncertainties are due to statistical and experimental systematic sources. The values of fΞb−/fΛb0 are obtained by invoking SU(3) symmetry in the Ξb−→JψΞ− and Λb0→J/ψΛ decays. Production asymmetries between Ξb− and Ξˉb+ baryons are also reported. The mass of the Ξb− baryon is also measured relative to that of the Λb0 baryon, from which it is found that \begin{align*} m(\Xi_b^-) &= 5796.70\pm0.39\pm0.15\pm0.17~{\rm MeV}/c^2, \end{align*} where the last uncertainty is due to the precision on the known Λb0 mass. This result represents the most precise determination of the Ξb− mass.