Man proposes to girlfriend while getting arrested