How to write extracted value from response in Gatling simulation

How to write extracted value from response in Gatling simulation?

.exec { session => println(session("value").as[String]) session }