Just putting them on separate lines is the normal expected way to do things.
If you need to pass around many things consider using a struct.
With recent zig versions there is also destructuring so you also could do this:
const a, const b = .{ 23, 56 };
std.debug.print("a = {} and b = {}\n", .{ a, b });
However doing this is probably not the right thing to do:
const a, const b, const c, const d, const e, const f, const g, const h, const i, const j = .{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
std.debug.print("{} {} {} {} {} {} {} {} {} {}\n", .{ a, b, c, d, e, f, g, h, i, j });