$y: why;

@mixin foo($x, $y: $y) {
  stuff: $x $y;
}

div {
  why: $y;
  @include foo(ecks);
}