Investigating the gas-to-dust ratio in the protoplanetary disk of HD 142527