How do you find out what dynamic versions your buildscript dependencies are resolving to?

For normal configuration dependencies, you can use the dependencies or dependencyInsight tasks to figure out what Gradle is resolving for each in the builds.

However, I haven’t figured out a way to do it in the buildscript. For example, supposing I have this code:

buildscript {
  repositories {
  dependencies {
    classpath ''

How do I find out what version is being used?