How to see the value of Saved Variable

I have 2 APIs to be executed:

.exec(generateUrl)
.exec(processUrl)

The implementation of these APIs are:

//Generate URL
val generateUrl = http("Generate URL")
  .post("http://zpp-adyen-mock-dev.dev.zooplus.net:80/zpp-adyen-mock/v1/calculate_signature")
  .header("Content-Type", "application/json")
  .body(StringBody("hello.com"))
  .check(status is 200)
  .check(jsonPath("$.resultUrl").saveAs("return_url"))

//Processes URL
val processUrl = http("Process URL")
  .post("/zpp-api/v1/payments/actions/initiate/process_psp_response")
  .formParam("pspReturnBackUrl", "${return_url}")
  .check(status is 200)

The Json Response of 'generateUrl' looks like below:
{"resultUrl":"http%3A%2F%2Fwww.ss.com%2F%3FauthResult%3DPENDING%26pspRef%3D1484128214.36%26merchantRef%3D18531%26paymentMethod%3Dcredit_card%26merchantSig%3DXQ6KW7uqxrAkFvNVRwOZLpRf9%2BM%3D"}


When I use this in next api call, it throws 400 instead of 200.

Is there a way I can log the value of 'return_url'?

exec(session =>{
println(session.get(“return_url”).as[String])
session
})